  -- Felmyst --
function spell0_25038(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(19983,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25038', 777, 1)
end
function spell1_25038(pUnit, Event) --@Corrosion,n/a--
pUnit:FullCastSpellOnTarget(45866,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25038', 10750, 1)
end
function spell2_25038(pUnit, Event) --@Gas Nova,Drain--
pUnit:FullCastSpellOnTarget(45855,pUnit:GetRandomPlayer(4))
pUnit:RegisterEvent('Sorts_25038', 31000, 1)
end
function spell3_25038(pUnit, Event) --@Noxious Fumes,Drain--
pUnit:FullCastSpellOnTarget(47002,pUnit:GetRandomPlayer(4))
pUnit:RegisterEvent('Sorts_25038', 0, 1)
end
function Sorts_25038(pUnit, Event)
choix_sorts_25038 = math.random(0, 3)
if choix_sorts_25038 == 0 then
pUnit:RegisterEvent('spell0_25038', 1, 1)
end
if choix_sorts_25038 == 1 then
pUnit:RegisterEvent('spell1_25038', 1, 1)
end
if choix_sorts_25038 == 2 then
pUnit:RegisterEvent('spell2_25038', 1, 1)
end
if choix_sorts_25038 == 3 then
pUnit:RegisterEvent('spell3_25038', 1, 1)
end
end
function mob25038_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25038', math.random(1500, 3000), 1)
end
function mob25038_Leave(pUnit, Event)
end
function mob25038_Kill(pUnit, Event)
end
function mob25038_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(25038, 1, 'mob25038_Action')
RegisterUnitEvent(25038, 2, 'mob25038_Leave')
RegisterUnitEvent(25038, 3, 'mob25038_Kill')
RegisterUnitEvent(25038, 4, 'mob25038_Die')
